//默认只带搜索框的查询
export class defaultSearchType {
   constructor (
    public  queryCriteria?:string,
    public  queryType?:number,
    public  pageNumber?:number,
    public  pageSize?:number,
    ){}
}

// 分页
export class Pagination {
  constructor(
    public pageNumber     : number,
    public pageSize       : number,
    public id?            : object|string|number,
    public queryType? 	  : number,
    public queryCriteria? : string,
  ) {}
}

/************************************************* URL *************************************************/

import {ConfigService} from '../common/config';

// 所有新增接口
export class NewlyAddedUrl {
	constructor(
        private configService : ConfigService,
		//用户管理
		public management 			: string = configService.HttpUrl+'admin/pusers/add',
		// 资源分类管理
		public resclassify 			: string = configService.HttpUrl+'product/resCategors/addResCategors',
		// 机构订单(基本信息)
		public instOrderBaseInfo 	: string = configService.HttpUrl+'Service/OrderService/add',
		// 机构订单(初始化数据)
		public instOrderAddInit 	: string = configService.HttpUrl+'Service/OrderService/addInit',
		// 机构订单(表格)
		public instOrderTable 		: string = configService.HttpUrl+'Service/OrderService/getResList',
		// 机构订单(延长一年/撤销一年)
		public instOrderDelay		: string = configService.HttpUrl+'Service/OrderService/modifyTime',
		// 机构订单(加入订单)
		public instOrderBatchAddRes	: string = configService.HttpUrl+'Service/OrderService/batchAddRes',
		// 机构订单(撤销订单)
		public instOrderRevokeOrder	: string = configService.HttpUrl+'Service/OrderService/revokeOrder',
	) {}
}

// 所有详情接口
export class DetailsUrl {
	constructor(
        private configService : ConfigService,
		// 资源分类管理
		public resCategors 		: string = configService.HttpUrl+'product/resCategors/getResCategors/',
		// 机构订单
		public instOrder		: string = configService.HttpUrl+'Service/OrderService/getInfos',
		// 机构订单（取消订单）
		public cancelOrder		: string = configService.HttpUrl+'Service/OrderService/cancel',
	) {}
}

// 所有修改接口
export class EditUrl {
	constructor(
        private configService : ConfigService,
		//用户管理
		public management 	: string = configService.HttpUrl+'admin/pusers/modify',
		// 资源分类管理
		public resclassify 	: string = configService.HttpUrl+'product/resCategors/modify',
		// 机构订单
		public instOrder 	: string = configService.HttpUrl+'Service/OrderService/update',
	) {}
}

// 所有删除接口
export class RemoveUrl {
	constructor(
        private configService : ConfigService,
		//用户管理
		public management 		: string = configService.HttpUrl+'admin/pusers/delete',
		// 资源分类管理
		public resRelationList 	: string = configService.HttpUrl+'product/resCategors/delete',
		// 资源分类管理（新增）
		public deleteResByResId : string = configService.HttpUrl+'product/resCategors/deleteResByResId',
		// 机构订单
		public instOrder 		: string = configService.HttpUrl+'Service/OrderService/delete',
	) {}
}

// 批量续期
export class RenewalUrl {
    constructor(
        private configService : ConfigService,
    ) {}
	// 机构订单
	public instOrder : string = this.configService.HttpUrl+'Service/OrderService/renew'
}

// 所有表格（分页）接口
export class PaginationUrl {
	constructor(
        private configService : ConfigService,
		//用户管理
		public management 		  : string = configService.HttpUrl+'admin/pusers/getPusersList',
		// 资源分类管理
		public resclassify 		  : string = configService.HttpUrl+'product/resCategors/getSublevelInfo',
		// 资源分类管理（添加资源）
		public resCategors 		  : string = configService.HttpUrl+'product/resCategors/getResList',
		// 资源分类管理（选中资源）
		public batchAddRes 		  : string = configService.HttpUrl+'product/resCategors/batchAddRes',
		// 资源分类管理（新增列表）
		public relationList 	  : string = configService.HttpUrl+'product/resCategors/getResRelationList',
		// 机构订单
		public institutionalOrder : string = configService.HttpUrl+'Service/OrderService/getAllOrders',
		// 合同列表
		public contractList : string = configService.HttpUrl+'Service/Contract/getContractListByContractNo',
	) {}
}

// 所有树状图接口
export class TreeUrl {
	constructor(
        private configService : ConfigService,
		// 资源类型
		public resclassify 		: string = configService.HttpUrl+'product/resCategors/getParentInfos',
		// 机构订单
		public institutionOrder : string = configService.HttpUrl+'admin/institutions/getParentInfos',
	) {}
}
